import { request } from '../https/request.js';

//获取个人信息
export function getUserInfo() {
	return request('/kyy/user/info','GET');
}

//注销账号
export function UserDestroy(data) {
	return request('/kyy/user','DELETE',data);
}

//修改账号信息
export function UserModify(data) {
	return request('/kyy/user','PUT',data);
}

// 发送手机验证码
export function sendChangePhoneCode(phone){
	return request(`/kyy/user/sendcode/${phone}`, 'POST', null);
}

//修改手机号
export function ChangePhone(data) {
	return request('/kyy/user/changephone','POST',data);
}